<div class="designer">
  <div class='logo'>
    <%= image_tag 'unknown.jpg', :width => 80 %>
  </div>
  <div class="descript">
    <div class="name">
      <%= link_to designer.full_name, designer_url(designer), :target => :_blank %>
    </div>
    <dl>
      <dt>所在部门：</dt>
      <dd>
        <%= link_to_remote designer.department.name,
                  :update => :right,
                  :url => designers_url(:department_id => designer.department.id),
                  :method => :get,
                  :loading => short_loader('right', :height_from => 'right')
        %>
      </dd>
    </dl>
    <dl>
      <dt>座机：</dt>
      <dd><%= designer.office_phone %></dd>
    </dl>
    <dl>
      <dt>手机：</dt>
      <dd><%= designer.cell_phone %></dd>
    </dl>
  </div>
  <div class="stat">
    <dl>
      <dt class='paying_money'>待发：</dt>
      <dd><b>￥</b><%= number_with_precision designer.paying_total_amount, :precision => 1 %></dd>
    </dl>
    <dl>
      <dt class='paused_money'>暂缓：</dt>
      <dd><b>￥</b><%= number_with_precision designer.paused_total_amount, :precision => 1 %></dd>
    </dl>
    <dl>
      <dt class='payed_money'>已发：</dt>
      <dd><b>￥</b><%= number_with_precision designer.payed_total_amount, :precision => 1 %></dd>
    </dl>
    <dl class="total">
      <dt>合计：</dt>
      <dd><b>￥</b><%= number_with_precision designer.total_amount, :precision => 1 %></dd>
    </dl>
  </div>
  <div class="tools">
    <div>
      <%= link_to "查看", designer_url(designer), :target => :_blank %>
    </div>
    <div>
      <%= link_to_remote '▶编辑',
                :update => "designer_#{designer.id}",
                :url => edit_designer_url(:id => designer.id, :department_id => params[:department_id]),
                :method => :get
        %>
    </div>
    <div>
      <%= link_to_remote '▶删除',
                :url => designer_url(designer),
                :method => :delete,
                :confirm => '确认要删除吗？'
        %>
    </div>
  </div>
</div>